<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>查看所有事件方法</title>
</head>

<body>

    <div></div>

    <script>
        var div = querySelector("div")

        console.log(div);
        console.dir(div);
    </script>

</body>

</html>